home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / magic15b / manual.arc / C11.MAG < prev    next >
Encoding:
Text File  |  1989-05-23  |  11.3 KB  |  82 lines

  1.  
  2.     This file is a special BLACK MAGIC Hypertext document.  To read me
  3. obtain MAGREAD.ARC from a local bulletin board, free of charge, or
  4. send $7 to: 
  5.  
  6.     NTERGAID
  7.     2490 BLACK ROCK TPK SUITE 337
  8.     FAIRFIELD, CT 06840
  9.  
  10. to receive, a disk copy of MAGREAD.ARC.
  11. You'll also get some of the latest documents written with BLACK MAGIC.
  12.  
  13.             Thank You
  14.             NTERGAID, Inc.
  15.            î╪6+]'Ä╪X├εå─BεJ├PR║εBO////////////////////OO////////////////////)OO////////////////////>22////////////////////COO////////////////////T////////////////////U////////////////////V////////////////////W////////////////////X NN////////////////////YαLt ///////////                 ┌──────────┐   ┌──────────┐   ┌──────────┐   ┌──────────┐     ┌──────────┐ │  HELP  │   │  NEXT  │   │PREVIOUS│   │    CONTENTS│     │  
  16. QUIT  │ └──────────┘   └──────────┘   └──────────┘   └──────────┘     └──────────┘  Chapter 11. Advanced Features ...  This chapter can easily be broken down into three differentsections or parts. 
  17. This first part is called: "Macros",which covers the use of the macro 
  18. capabilities in BlackMagic. The second section is called: "Custom Magic", 
  19. whichis a guide to the configuration of Black Magic as best suits your preferences.  Finally the third section is devoted tothe use of TSR type 
  20. utilities.  TSR's and Black Magic MacrosConfiguration         
  21. TSR'sandBlackMagic  NTERGAID recognizes that many users of Black Magic will alsorun TSR programs in conjunction with Black Magic.  However with Black Magic and some TSR programs this canpresent a problem. Black Magic uses a bit mapped display andsome TSR programs do not properly return the screen to itsprevious bit mapped state. To avoid problems like thisBlackMagic includes what we have termed a TSR wait state.     TSR Wait State  A TSR Wait State is just that. It puts Black Magic into aholding pattern from 
  22. which a TSR can be executed. After theTSR is executed and you return to Black 
  23. Magic from the TSRthe TSR Wait State command will ensure that the screen is updated properly according to Black Magic rather than theTSR. This command is 
  24. executed by typing:      <Shift> <F10>  After this is typed, go ahead and press the key strokes forthe your TSR. 
  25. After you're done, exit the TSR to BlackMagic, and all should be well.                  Macros Macros&Commands                               About Macros                               Macros - Summary  Macros are one of Black Magic's most useful features. Amacro is a collection 
  26. of key strokes that has been assignedto a single key combination. By striking 
  27. the key combinationthat represents a macro, the keystrokes that are stored in it are fed to the computer just as if you had typed them. Example  Using Macros  Using macros is actually a very simple process. The firststep in using 
  28. macros,is to define a macro. This is done bypressing the Macro Definition 
  29. key, giving the macro aname,  and then typing what is to be assigned to the 
  30. macro.Example - Defining A Macro  Let's walk through the macro definition process as anexample. We want to 
  31. define a macro that will automaticallytype a letter's salutation. To do this, 
  32. type the following:(For this example, all the indented text is as always part of the example, however only the bold face text is the user,the normal text 
  33. represents program output) <Shift> <F7>  Here the program will prompt you for the name of the macro, let's call it: S.      Mac: S  If there was already a macro defined with the name of  "S"then Black Magic 
  34. would prompt as to whether or not thatmacro was to be overwritten.  Since 
  35. there wasn't, you cango ahead and define the macro. Here anything that would 
  36. beused as a letters salutation could be used, but we'll usethe following. 
  37. Type this:      Greetings My Friend: <Enter>  Now the salutation is done, and its time to end defining themacro. This is 
  38. done by pressing:      <Shift> <F7>  You will notice that the <Shift> <F7> keystroke that is usedto end defining 
  39. the macro is the same keystroke to startdefining a macro. After the macro is 
  40. defined, it isautomatically saved to disk. If you are creating a newmacro 
  41. with the same name as one already on the disk, BlackMagic will prompt youas
  42. to whether or not the originalmacro is to be overwritten. Now with the macro 
  43. defined, itis time to test it. This is done by positioning the cursorat the 
  44. place where you want the macro placed and pressing:      <F7> S This will insert the letter salutation in your document atthe cursor 
  45. location. You will notice that the entire macrowas inserted, including the 
  46. <Enter> at the end. This bringsto the next aspect of macros: command 
  47. simplification.           Macros & Commands  The above first example does demonstrate the use of macros,but in a very 
  48. limited fashion. A macro can be anycombination of keystrokes, they do not 
  49. haveto be limited totext. A macro could contain only commands and no text.      Example  For example a macro could be defined to save your filedirectly rather than 
  50. follow through all of the prompts.This macro would be defined by toggling the 
  51. macro definitionmode on (<Shift> <F7>), and then going through all of the steps to save your document. After the document is saved,and BEFORE anything 
  52. else is done toggle the macrodefinition mode off, and the macro is saved.  An example of this type of macro is shown below. This macrowill reset the tab 
  53. value to forty (40) spaces.      <Shift> <F7>     Mac: T     <Alt> T     40 <Enter>     <Shift> <F7>  This above macro, which would be invoked merely by pressing<F7> T, would 
  54. resetthe tab value to forty. While this is atrivial example, it does
  55. illustrate how macros can be usedto simplify commands.           About Macros  After macros are created, they are saved to disk. Thiscreates a file with the 
  56. name of the letter name of the macroand the extension ".MAC". An example of 
  57. the filename createdwould be "A.MAC". However despite macros being a useful tool, they do have their limitations.    Limitations  Thefirstlimitation of a Macro is that it cannot accessother macros. It is 
  58. independent from the rest. This meansthat you cannot use a macro to either 
  59. create a macro or runanother macro. The reason for this is that when a macro 
  60. isbeing created, if any of the other macro keys (<Shift> <F7>or <F7>) are 
  61. struck it will end the macro, saving it todisk.  ThesecondlimitationisthatMacroscannotbeedited.Ifyou make a mistake
  62. when defining a macro, that macro mustbefinishedbypressing<Shift><F7>
  63. andthenthatmacroredefinedfromscratch.           Macros - Summary  The below list is a summary of the steps involved in creating macros:     1. Press <Shift> <F7>    2. Type the macro's name    3. Type the macro    4. Press <Shift> <F7> again to terminate the macro    5. You're done, macro automatically saved to disk  The below list is a summary of the steps involved in using a macro.     1. Press <F7>    2. Type the macro's name (1 character)    3. Macro is executed by Black Magic  Lets consider the phrase below:            NTERGAID           2490 Black Rock Tpke.           Suite 337           Fairfield, CT 06430  This phrase, our address, is probably typed 
  64. several thousandseparate times, but 
  65. realisticallywhy ever type it morethan once?  With the use of macros, this phrase could be 
  66. assigned to akey combination and never typed 
  67. again. Once the macro wasdefined withthis
  68. phrase, repeating the phrase could be as simple 
  69. as<F7> A  ("A" for Address...).Thisisavery simple example of the use of macros, but it does 
  70. illustrate the use of them.             Custom Magic                                       MoreonConfiguration Black Magic, like most well written software, allows somedegree of 
  71. customization through its Config. option.  Additionally Black Magic saves any configuration changes todisk for future 
  72. use any time Black Magic is run. This optionis located on the <F10> menu or 
  73. it can be accessed from<Alt> C. When activated, it calls up a full screen of information about Black Magic's configuration anddefault settings. The things 
  74. in Black Magic that can beconfigured include:     Default Note Window size.    Default Left and Right margins    Default Tab Size    Automatic bookmark/Query for bookmark    Video color for normal text    Video color for Block marked text    Option to show or hide link markers    Option to show or hide link colors    Default directories for files and program  To change items on this menu, it must be first be broughtupon screen. This is 
  75. done by pressing:      <Alt> C  Once it is on screen configuration menu displays a fullscreen of information 
  76. with a blue highlighting bar that isstepped through the menu with the arrow 
  77. keys. TheConfiguration options are modified using the arrow keys,"Y"/"N", 
  78. and the number keys.  The only options that can be changed are those that the bluehighlighting bar 
  79. stops at. When the the bar stops, theentry is modified in the following 
  80. manner.   1. If the entry is numeric (Width - ) enter a number       and <Enter>   2. If the entry has a "Yes" or a "No" next to it, Press       "Y" or "n" to change it.   3. If the entry has nothing, press the <RightArrow> or       <LeftArrow> to change it.   4. To change the BackGround color, press the "+" and       "-" keys.     Notes about Configuration Options  The other option that could cause users confusion are theText Color and 
  81. BackGround Color options. To change the textcolor, press the <LeftArrow> and 
  82. the <RightArrow>.  Tochange the BackGround color press the "+" and "-" keys.  C12      C12      C10      CONTENTSm cls MANSUPP